﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using AspNetCs.Model;

namespace AspNetCs.IDAL
{
    public interface IMusic
    {
        DataTable GetDataTable(string filter);

        MusicModel GetModel(DataRow row);
        
        /// <summary>
        /// 查询所有的音乐
        /// </summary>
        /// <returns></returns>
        DataTable queryAllMusic();

        /// <summary>
        /// 添加音乐
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int AddMusic(MusicModel model);

        /// <summary>
        /// 修改音乐
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateMusic(MusicModel model);


        /// <summary>
        /// 删除音乐
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        int DeleteMusic(int Id);
    }
}
